/* 基础样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  }
  
  body {
    width: 400px;
    height: 600px;
    background-color: #121212;
    color: #ffffff;
    overflow: hidden;
  }
  
  /* 音乐播放器容器 */
  .music-player {
    display: flex;
    flex-direction: column;
    height: 100%;
    background: linear-gradient(135deg, #1a1a1a 0%, #000000 100%);
  }
  
  /* 播放器头部 */
  .player-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background-color: rgba(0, 0, 0, 0.5);
    border-bottom: 1px solid #333;
  }
  
  .player-header h1 {
    font-size: 18px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 10px;
  }
  
  .player-header h1 i {
    color: #1db954;
  }
  
  .refresh-btn {
    background-color: #1db954;
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: all 0.3s ease;
  }
  
  .refresh-btn:hover {
    background-color: #1ed760;
    transform: scale(1.05);
  }
  
  /* 音乐列表容器 */
  .music-list-container {
    flex: 1;
    overflow-y: auto;
    padding: 10px;
  }
  
  .music-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
  }
  
  /* 音乐卡片 */
  .audio-card {
    display: flex;
    align-items: center;
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    padding: 12px;
    transition: all 0.3s ease;
    cursor: pointer;
  }
  
  .audio-card:hover {
    background-color: rgba(255, 255, 255, 0.1);
  }
  
  .audio-card.active {
    background-color: rgba(29, 185, 84, 0.2);
  }
  
  .audio-info {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 15px;
    overflow: hidden;
  }
  
  .audio-info img {
    width: 50px;
    height: 50px;
    border-radius: 5px;
    object-fit: cover;
  }
  
  .audio-title {
    font-size: 14px;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  
  .audio-artist {
    font-size: 12px;
    color: #b3b3b3;
    margin-top: 3px;
  }
  
  .audio-actions {
    display: flex;
    gap: 10px;
  }
  
  .action-btn {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: none;
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
  }
  
  .action-btn:hover {
    background-color: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
  }
  
  .action-btn.play-btn {
    background-color: #1db954;
  }
  
  .action-btn.play-btn:hover {
    background-color: #1ed760;
  }
  
  /* 空状态提示 */
  .no-music {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 300px;
    color: #b3b3b3;
    text-align: center;
  }
  
  .no-music-icon {
    font-size: 50px;
    margin-bottom: 15px;
    color: #1db954;
  }
  
  /* 播放控制面板 */
  .player-controls {
    padding: 15px;
    background-color: rgba(0, 0, 0, 0.7);
    border-top: 1px solid #333;
  }
  
  .now-playing {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
  }
  
  .now-playing img {
    width: 60px;
    height: 60px;
    border-radius: 5px;
    object-fit: cover;
  }
  
  .track-info {
    flex: 1;
    overflow: hidden;
  }
  
  .track-title {
    font-size: 16px;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  
  .track-artist {
    font-size: 14px;
    color: #b3b3b3;
    margin-top: 5px;
  }
  
  .player-buttons {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 25px;
    margin-bottom: 15px;
  }
  
  .control-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background-color: transparent;
    color: white;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.2s ease;
  }
  
  .control-btn:hover {
    color: #1db954;
    transform: scale(1.1);
  }
  
  .control-btn.play-btn {
    width: 50px;
    height: 50px;
    background-color: #1db954;
    color: white;
  }
  
  .control-btn.play-btn:hover {
    background-color: #1ed760;
    transform: scale(1.1);
  }
  
  .progress-container {
    display: flex;
    align-items: center;
    gap: 10px;
  }
  
  .progress-time {
    font-size: 12px;
    color: #b3b3b3;
    min-width: 40px;
  }
  
  .progress-bar {
    flex: 1;
    height: 4px;
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 2px;
    cursor: pointer;
  }
  
  .progress {
    height: 100%;
    background-color: #1db954;
    border-radius: 2px;
    width: 0%;
    transition: width 0.1s linear;
  }
  
  /* 滚动条样式 */
  ::-webkit-scrollbar {
    width: 6px;
  }
  
  ::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 3px;
  }
  
  ::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 3px;
  }
  
  ::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.3);
  }


  /* 更新进度条相关CSS */
.progress-container {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 15px;
  }
  
  .progress-time {
    font-size: 12px;
    color: #b3b3b3;
    min-width: 40px;
    text-align: center;
  }
  
  .progress-bar {
    flex: 1;
    height: 6px;
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 3px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
  }
  
  .progress {
    height: 100%;
    background-color: #1db954;
    border-radius: 3px;
    width: 0%;
    transition: width 0.1s linear;
    position: relative;
  }
  
  /* 添加进度条拖动时的指示器 */
  .progress::after {
    content: '';
    position: absolute;
    right: -5px;
    top: 50%;
    transform: translateY(-50%);
    width: 10px;
    height: 10px;
    background-color: white;
    border-radius: 50%;
    opacity: 0;
    transition: opacity 0.2s;
  }
  
  .progress-bar:hover .progress::after {
    opacity: 1;
  }
  
  /* 拖动时的样式 */
  .progress-bar.dragging .progress::after {
    opacity: 1;
    transform: translateY(-50%) scale(1.2);
  }

  .end{
    z-index: -99;
    opacity: 0;
    position: relative;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
  }
  .top{
    z-index: 99;
    opacity: 1;
    position: relative;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
  }

  .jxx{
    width: 90%;
    height: 40px;
    margin: 10px auto 20px auto; 
    display: flex;
    justify-content: center;
    align-items: center;
  }
  .jxx input{
    width: 96%;
    padding: 0 2%;
    height: 100%;
    border-radius: 10px;
    border: 1px solid white;
    color:white;
    background: transparent;
  }
  .jxx input:focus{
    border: 1px solid blue !important;
  }
  .jxx button{
    all:unset;
    width: 40%;
    line-height: 35px;
    text-align: center;
    border-radius: 30px;
    background: white;
    color: black;
    margin: 0 auto;
  }
  .jxx button:active{
    opacity: 0.8;
    border:2px solid blue;
  }